package com.tju.resource.server;


import com.baomidou.mybatisplus.extension.service.IService;
import com.tju.resource.model.TbShipment;
import com.tju.resource.tool.result.Result;
import com.tju.resource.tool.tool.ClientParameters;

/**
 *
 */
public interface TbShipmentService extends IService<TbShipment> {
    /**
     * 查询出货列表
     * @param parameter
     * @return
     */
    Result<Object> selectShipment(ClientParameters parameter);
    /**
     * 新增出货
     */
    Result<Object> insertShipment(TbShipment shipment);
    /**
     * 修改出货
     */
    Result<Object> updateShipment(TbShipment shipment);
    /**
     * 删除出货
     */
    Result<Object> deleteShipment(TbShipment shipment);
    /**
     * 审核
     */
    Result<Object> approveShipment(TbShipment shipment);

    /**
     * 出货添加耗材
     * @param shipment //耗材集合
     * @return
     */
    Result<Object> shipConsumables(TbShipment shipment);

    /**
     * 审核耗材
     * @param shipment
     * @return
     */
    Result<Object> approveShipConsumables(TbShipment shipment);
}
